import request from '@/util/request'

export function listCompanyMenu(data) {
  return request({
    url: '/iot/company/menu/list',
    method: 'post',
    data
  })
}

export function getCompanyMenu(data) {
  return request({
    url: '/iot/company/menu/get',
    method: 'post',
    data
  })
}

export function pageGetCompanyMenu(data) {
  return request({
    url: '/iot/company/menu/pageGet',
    method: 'post',
    data
  })
}

export function insertCompanyMenu(data) {
  return request({
    url: '/iot/company/menu/insert',
    method: 'post',
    data
  })
}

export function updateCompanyMenu(data) {
  return request({
    url: '/iot/company/menu/update',
    method: 'post',
    data
  })
}

export function deleteCompanyMenu(data) {
  return request({
    url: '/iot/company/menu/delete',
    method: 'post',
    data
  })
}

export function treeCompanyMenu(data) {
  return request({
    url: '/iot/company/menu/tree',
    method: 'post',
    data
  })
}

export function numTreeCompanyMenu(data) {
  return request({
    url: '/iot/company/menu/num/tree',
    method: 'post',
    data
  })
}

export function companyMenuUserTree(data) {
  return request({
    url: '/iot/company/menu/userTree',
    method: 'post',
    data
  })
}

